package com.zlp.spring.one.Test;

import com.zlp.spring.one.annotation.ZlpAnnotationConfigApplicationContext;
import com.zlp.spring.one.config.SpringConfig;
import com.zlp.spring.one.service.OrderService;
import com.zlp.spring.one.service.impl.OrderServiceImpl;

public class AnnotaionTest {

    public static void main(String[] args){

        ZlpAnnotationConfigApplicationContext applicationContext = new ZlpAnnotationConfigApplicationContext(SpringConfig.class);

//        OrderService orderService = (OrderService) applicationContext.getBean("orderService");
        OrderService orderService = (OrderService) applicationContext.getBean("orderService");
        orderService.test();


    }
}
